<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE|default:"en-us" }}" xml:lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<title>GEM: {% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/static_media/base.css" />
<link rel="stylesheet" type="text/css" href="/static_media/js/autocomplete.css">
<script type="text/javascript" src="/static_media/js/jquery-1.4.4.js"></script>
<script type="text/javascript" src="/static_media/js/dimensions.js"></script>
<script type="text/javascript" src="/static_media/js/autocomplete.js"></script>
{% block extrastyle %}{% endblock %}
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]-->
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";</script>
{% block extrahead %}{% endblock %}
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
</head>
{% load i18n %}

<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}" onload="{% block onload %}{% endblock %}">

<!-- Container -->
<div id="container">
    {% if not is_popup %}
    <!-- Header -->
    <div id="header">
    	{% include "analytics/current.html" %}
    	
        <div id="branding">
        {% block branding %}<h1><a href="/">myClimb @ Stanford</a></h1>{% endblock %}
		<h2>An extension of the <a href="http://www.stanford.edu/dept/pe/cgi-bin/services/outdoor-education/climbing-wall/">Stanford Climbing Wall</a>.</h2>
        </div>
        <div id="user-tools">
        	{% if user.is_active %}
	            {% trans 'Welcome,' %}
	            <a href="/userprofile" class="nameProfileLink">{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</a>.
	            {% block userlinks %}
	                {% url django-admindocs-docroot as docsroot %}
	                {% if docsroot %}
	                    <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
	                {% endif %}
	                {% if user.is_staff %}
	                	[<a href="/admin">{% trans 'admin' %}</a>]
	                {% endif %}
	                [<a href="/accounts/logout/">{% trans 'log out' %}</a>]
	            {% endblock %}
	        {% else %}
	        	{% trans 'Welcome, guest.' %}
	        	[<a href="/accounts/login">log in</a>]
	        {% endif %}
        </div>
        {% block nav-global %}{% endblock %}
    </div>
    <div id="navigationBar">
       <a href="/">Home</a>{% if user.is_active %}<a href="/userprofile">Profile</a><!--<a href ="/waivers/signed/{{user.id}}">Waivers</a>--><a href="/social">Find Partners</a><a href="/analytics">Gym Analytics</a><a href="/routes">Routes</a>{% endif %}{% if user.profile.gym_staff or user.is_staff %}<a href="/checkin" class="admin">Check-in</a><a href="/usersearch" class="admin">User Search</a>{% endif %}{% if user.is_staff %}<a href="/userattributes/edit/" class="admin">Certifications</a>{% endif %}
    </div>
    <!-- END Header -->
    <!--{% block breadcrumbs %}<div class="breadcrumbs">> <a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}-->
    <div class="breadcrumbs">> Home {% block crumb %}{% endblock %}</div>
    {% endif %}

        {% if messages %}
        <ul class="messagelist">{% for message in messages %}
          <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
	{% endfor %}</ul>
        {% endif %}

    <!-- Content -->
    <div id="content" class="{% block coltype %}colM{% endblock %}">
        {% block pretitle %}{% endblock %}
        {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
        {% block content %}
        {% block object-tools %}{% endblock %}
        {{ content }}
        {% endblock %}
        {% block sidebar %}{% endblock %}
        <br class="clear" />
    </div>
    <!-- END Content -->

    {% block footer %}<div id="footer">Copyright &copy; 2011, Stanford Climbing Wall. Powered by GEM: Gym Enterprise Management.</div>{% endblock %}
</div>
<!-- END Container -->

</body>
</html>
